import config from '@/config'

export default {
    set: s => {
        localStorage.setItem(config.token, s)
    },
    get: () => {
        return localStorage.getItem(config.token)
    },
    isOnline: () => {
        return !!localStorage.getItem(config.token)
    }
}